home *** CD-ROM | disk | FTP | other *** search
- Path: news.abo.fi!toffe
- From: csundqvi@abo.fi (Christoffer Sundqvist)
- Newsgroups: comp.lang.c
- Subject: How to access memory allocated in function
- Date: Mon, 15 Jan 96 13:46:17 GMT
- Organization: Department of Business Administration
- Message-ID: <4ddbe3$so3@josie.abo.fi>
- NNTP-Posting-Host: toffe.abo.fi
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- Hello
-
-
- How can i access memory allocated dynamically in a function after i leave the
- function, something like this:
-
- main()
- {
- int *p;
- sub(p);
- }
-
- void sub(int *p)
- {
- p = malloc(.....);
- }
-
- Thanks !
-